package com.ruoyi.passenger.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passenger.mapper.TbPassengerAppLoginInfoMapper;
import com.ruoyi.passenger.domain.TbPassengerAppLoginInfo;
import com.ruoyi.passenger.service.ITbPassengerAppLoginInfoService;

/**
 * 设备号黑名单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class TbPassengerAppLoginInfoServiceImpl implements ITbPassengerAppLoginInfoService 
{
    @Autowired
    private TbPassengerAppLoginInfoMapper tbPassengerAppLoginInfoMapper;

    /**
     * 查询设备号黑名单
     * 
     * @param tempId 设备号黑名单主键
     * @return 设备号黑名单
     */
    @Override
    public TbPassengerAppLoginInfo selectTbPassengerAppLoginInfoByTempId(Long tempId)
    {
        return tbPassengerAppLoginInfoMapper.selectTbPassengerAppLoginInfoByTempId(tempId);
    }

    /**
     * 查询设备号黑名单列表
     * 
     * @param tbPassengerAppLoginInfo 设备号黑名单
     * @return 设备号黑名单
     */
    @Override
    public List<TbPassengerAppLoginInfo> selectTbPassengerAppLoginInfoList(TbPassengerAppLoginInfo tbPassengerAppLoginInfo)
    {
        return tbPassengerAppLoginInfoMapper.selectTbPassengerAppLoginInfoList(tbPassengerAppLoginInfo);
    }

    /**
     * 新增设备号黑名单
     * 
     * @param tbPassengerAppLoginInfo 设备号黑名单
     * @return 结果
     */
    @Override
    public int insertTbPassengerAppLoginInfo(TbPassengerAppLoginInfo tbPassengerAppLoginInfo)
    {
        return tbPassengerAppLoginInfoMapper.insertTbPassengerAppLoginInfo(tbPassengerAppLoginInfo);
    }

    /**
     * 修改设备号黑名单
     * 
     * @param tbPassengerAppLoginInfo 设备号黑名单
     * @return 结果
     */
    @Override
    public int updateTbPassengerAppLoginInfo(TbPassengerAppLoginInfo tbPassengerAppLoginInfo)
    {
        return tbPassengerAppLoginInfoMapper.updateTbPassengerAppLoginInfo(tbPassengerAppLoginInfo);
    }

    /**
     * 批量删除设备号黑名单
     * 
     * @param tempIds 需要删除的设备号黑名单主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerAppLoginInfoByTempIds(Long[] tempIds)
    {
        return tbPassengerAppLoginInfoMapper.deleteTbPassengerAppLoginInfoByTempIds(tempIds);
    }

    /**
     * 删除设备号黑名单信息
     * 
     * @param tempId 设备号黑名单主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerAppLoginInfoByTempId(Long tempId)
    {
        return tbPassengerAppLoginInfoMapper.deleteTbPassengerAppLoginInfoByTempId(tempId);
    }
}
